package cn.dankal.flyaudio.contract;

import java.util.List;

import cn.dankal.basiclib.base.BasePresenter;
import cn.dankal.basiclib.base.BaseView;
import cn.dankal.basiclib.pojo.CouponEntity;


/**
 * <pre>
 *     e-mail : junfeng.nie@duntech.com.cn
 *     time   : 12/7/2020
 *     desc   :
 *     version: cn.dankal.flyaudio.contract
 *     Copyright: Copyright（c）2018
 *     Company:
 * </pre>
 *
 * @author niejunfeng
 */
public interface MyCardContract {

    interface Presenter extends BasePresenter<View> {
        void getDataList(int page, String state);

        void getExchange(String code);
    }


    interface View extends BaseView {
        void showProductList(List<CouponEntity> data);
        void onError();

        void onExchangeSuccess(String id);
        void onExchangeError();
    }
}
